package com.daka.service.impl;

import com.daka.dao.ActivitySignMapper;
import com.daka.service.ActivitySignService;
import com.daka.vo.db.ActivitySignVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Service("activitySignService")
@SuppressWarnings("unused")
public class ActivitySignServiceImpl implements ActivitySignService {

    @Resource(name = "activitySignMapper")
    private ActivitySignMapper activitySignMapper;

    public List<ActivitySignVo> selectByUser(int userId) {
        return activitySignMapper.selectByUser(userId);
    }

    public List<ActivitySignVo> selectPageByUser(Integer userId, String userName, Integer pageIndex, Integer pageSize) {
        return activitySignMapper.selectPageByUser(userId, userName, pageIndex, pageSize);
    }

    public int selectCountByUser(Integer userId, String userName) {
        return activitySignMapper.selectCountByUser(userId, userName);
    }

    public List<ActivitySignVo> selectByActivity(int activityId) {
        return activitySignMapper.selectByActivity(activityId);
    }

    public List<ActivitySignVo> selectPageByActivity(Integer activityId, String activityName, Integer pageIndex, Integer pageSize) {
        return activitySignMapper.selectPageByActivity(activityId, activityName, pageIndex, pageSize);
    }

    public int selectCountByActivity(Integer activityId, String activityName) {
        return activitySignMapper.selectCountByActivity(activityId, activityName);
    }
}
